import request from '@/utils/request'

// 查询首页配置列表
export function listIndexRroute(query) {
  return request({
    url: '/taskhub/indexRroute/list',
    method: 'get',
    params: query
  })
}

// 查询首页配置详细
export function getIndexRroute(id) {
  return request({
    url: '/taskhub/indexRroute/' + id,
    method: 'get'
  })
}

// 新增首页配置
export function addIndexRroute(data) {
  return request({
    url: '/taskhub/indexRroute',
    method: 'post',
    data: data
  })
}

// 修改首页配置
export function updateIndexRroute(data) {
  return request({
    url: '/taskhub/indexRroute',
    method: 'put',
    data: data
  })
}

// 删除首页配置
export function delIndexRroute(id) {
  return request({
    url: '/taskhub/indexRroute/' + id,
    method: 'delete'
  })
}
